package dancespeedymodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceMinGameTurntableActivitiesConditions 小游戏转盘抽奖活动条件
type DanceMinGameTurntableActivitiesConditions struct {
	Id                        int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ActivitiesId              int64          `json:"activitiesId" gorm:"column:activities_id;type:bigint;default:0;not null;comment:活动id"`
	ConditionsTypeOne         int            `json:"conditionsTypeOne" gorm:"column:conditions_type_one;type:bigint;default:0;not null;comment:奖品一级类型"` //
	ConditionsTypeTwo         int            `json:"conditionsTypeTwo" gorm:"column:conditions_type_two;type:bigint;default:0;not null;comment:奖品二级类型 -1:星光值;80:碎片"`
	PrizeValue                int64          `json:"prizeValue" gorm:"column:prize_value;type:bigint;default:0;not null;comment:奖品编号"`
	PrizeNum                  int64          `json:"prizeNum" gorm:"column:prize_num;type:bigint;default:0;not null;comment:奖品数量"`
	ValidityPeriod            int64          `json:"validityPeriod" gorm:"column:validity_period;type:bigint;default:0;not null;comment:奖品有效期"`
	ConditionsValueProportion int64          `json:"conditionsValueProportion" gorm:"column:conditions_value_proportion;type:bigint;default:0;not null;comment:抽奖比例，不能大于10万"`
	Start                     int64          `json:"start" gorm:"column:start;type:bigint;default:0;not null;comment:命中开始区间"`
	End                       int64          `json:"end" gorm:"column:end;type:bigint;default:0;not null;comment:命中结束区间"`
	Tag                       int            `json:"tag" gorm:"column:tag;type:tinyint;default:0;not null;comment:奖品等级 1-8: 1等级-8等级"`
	CreatedId                 int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"` // 创建人id
	CreatedAt                 time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt                 time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt                 gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
